﻿using System.ComponentModel.DataAnnotations;

namespace Vaccine.API.Models
{
    /// <summary>
    /// 新增疫苗信息输入模型
    /// </summary>
    public class CreateVaccineInfoInput
    {
        /// <summary>
        /// 疫苗名称
        /// </summary>
        [Required(ErrorMessage = "疫苗名称为必填")]
        [StringLength(32)]
        public string? Name { get; set; }

        /// <summary>
        /// 疫苗描述
        /// </summary>
        [StringLength(256)]
        public string? Description { get; set; }

        /// <summary>
        /// 疫苗数量
        /// </summary>
        public int Quantity { get; set; }
    }
}
